package com.jason.bbs.bean;

import java.util.HashMap;
import java.util.Objects;


public class ResultJson extends HashMap<String, Object> {
	
	public ResultJson() {
	}
	public ResultJson(int code, String message) {
		setCode(code);
		setMessage(message);
	}

	public int getCode() {
		return (int) this.get("code");
	}

	public void setCode(int code) {
		this.put("code", code);
	}

	public void setMessage(String message) {
		this.put("message", message);
	}

	public String getMessage() {
		return Objects.toString(this.get("message"));
	}

	public <T> T getValue(Object key) {
		return (T) super.get(key);
	}
	
	
}
